package com.example.springLearning.part2.service;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class BeanDef {

    @Bean
    public String serviceName() {
        return "MyServiceName";
    }
    @Bean
    public int getAge() {
        return 0;
    }

}
